<!-- AdminPage.vue -->
<script setup lang="ts">
import { RouterView } from 'vue-router'
</script>

<template>
  <el-scrollbar class="admin-view-container">
    <router-view v-slot="{ Component }">
      <keep-alive :include="['ChatPage', 'AdminMap']">
        <component :is="Component" />
      </keep-alive>
    </router-view>
  </el-scrollbar>
</template>

<style lang="scss" scoped>
.admin-view-container {
  height: calc(100vh - 64px); // 根据实际头部高度调整
  background: white;

  :deep(.el-scrollbar__view) {
    padding: 0px;
  }
}
</style>
